/* ==================== */
/* VERSION AMÉLIORÉE COMPLÈTE */
/* ==================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", "Roboto", sans-serif;
}

body {
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.6;
}

/* ==================== */
/* NAVIGATION BAR STYLES */
/* ==================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.nav-brand h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    color: #1e40af;
    white-space: nowrap;
}

.nav-btn i {
    font-size: 1.1rem;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Specific button colors */
.nav-btn.home {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.nav-btn.services {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    color: white;
}

.nav-btn.about {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.nav-btn.contact {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
        gap: 10px;
    }
    
    .nav-buttons.show {
        display: flex;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .nav-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ==================== */
/* UPDATE CONTAINER TO REMOVE SIDEBAR */
/* ==================== */

.container {
    display: block;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Remove sidebar styles */
.sidebar {
    display: none;
}

/* Update main content to full width */
.main-content {
    padding: 30px;
    background: #ffffff;
}

/* Update back button position */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 10px 20px;
    border-radius: 25px;
    background: #eff6ff;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateX(-5px);
}

/* ==================== */
/* UPDATE HERO SECTION FOR NEW LAYOUT */
/* ==================== */

.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0 50px 0;
    text-align: center;
    border-left: 6px solid #3b82f6;
}

.hero-text {
    max-width: 100%;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: #4f46e5;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    border-top: 5px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.card-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #dbeafe;
    font-size: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e40af;
}

.card-list {
    list-style: none;
}

.card-list li {
    padding: 8px 0;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.card-list i {
    color: #3b82f6;
    margin-top: 4px;
}

.card-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

.see-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.see-more:hover {
    color: #1e40af;
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s ease;
}

.card.active .experience-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 25px;
}

.experience-details h4 {
    color: #1e40af;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.date {
    color: #9ca3af;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.experience-details ul {
    padding-left: 20px;
    color: #6b7280;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    color: #9ca3af;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
}

.footer i.fa-heart {
    color: #ef4444;
}

/* ==================== */
/* STYLES COMMUNS POUR TOUTES LES PAGES */
/* ==================== */

/* Styles pour les autres pages (Services, Contact, Qui sommes-nous) */
.service-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    border-left: 6px solid #3b82f6;
}

.service-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 10px;
}

.service-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.service-content h2 {
    color: #1e40af;
    font-size: 1.8rem;
    margin: 30px 0 20px;
    font-weight: 700;
}

.service-content h3 {
    color: #374151;
    font-size: 1.3rem;
    margin: 25px 0 15px;
    font-weight: 600;
}

.service-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.service-content ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.service-content li {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Styles pour la page Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    border-top: 5px solid #3b82f6;
    position: relative;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.contact-card .card-icon {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #dbeafe;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    margin-top: 4px;
    color: #93c5fd;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form button {
    padding: 15px 30px;
    border: none;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.contact-form button:hover {
    background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Footer pour toutes les pages */
.footer {
    text-align: center;
    padding: 25px;
    color: #9ca3af;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 50px;
}

.footer i.fa-heart {
    color: #ef4444;
}

/* Responsive pour toutes les pages */
@media (max-width: 768px) {
    .service-hero {
        padding: 30px;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-content h2 {
        font-size: 1.5rem;
    }
}

/* ==================== */
/* STYLES POUR LES ESPACES PHOTOS */
/* ==================== */

.photo-real img {
    width: 100%;
    max-width: 800px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-description {
    margin-top: 10px;
    color: #64748b;
    font-style: italic;
    font-size: 0.9rem;
}

.photo-real-grid {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.photo-real-grid:hover {
    transform: translateY(-5px);
}

.photo-real-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.photo-real-grid p {
    font-weight: 600;
    color: #374151;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .photo-placeholder {
        height: 200px;
    }
    
    .photo-real img {
        height: 200px;
    }
}

/* ==================== */
/* ADDITIONAL STYLES FROM NOS-SERVICES.HTML */
/* ==================== */

.expertise-badge {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expertise-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.experience-highlight {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 5px solid #3b82f6;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cv-competence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.competence-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3b82f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competence-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.competence-category h4 {
    color: #1e40af;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.competence-list {
    list-style: none;
    padding: 0;
}

.competence-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: padding-left 0.3s ease;
}

.competence-list li:hover {
    padding-left: 10px;
}

.competence-list i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.project-timeline {
    position: relative;
    padding-left: 40px;
    margin: 50px 0;
}

.project-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #dbeafe;
}

.timeline-date {
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-content h4 {
    color: #1e40af;
    margin: 15px 0 10px;
    font-size: 1.25rem;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.client-logo-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    transition: transform 0.3s ease;
}

.client-logo-item:hover {
    transform: translateY(-10px);
}

.client-logo-item i {
    font-size: 3.5rem;
    color: #3b82f6;
    margin-bottom: 15px;
}

.certification-section {
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 20px;
    padding: 50px;
    margin: 60px 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #10b981;
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    margin: 15px 10px 15px 0;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    transition: transform 0.3s ease;
}

.certification-badge:hover {
    transform: translateY(-3px);
}

.years-experience {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e40af;
    text-align: center;
    margin: 40px 0;
    text-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.years-experience small {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
    display: block;
    margin-top: 10px;
}

/* Styles des cartes de services améliorées */
.photo-real-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-photo-card {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-experience-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.service-photo-icon {
    font-size: 3.5rem;
    color: #3b82f6;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-badge {
    display: inline-block;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 15px;
}

/* Styles UNIFORMES pour toutes les photos */
.photo-section {
    margin: 50px 0;
}

.photo-single {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: block;
    margin: 0 auto;
}

.photo-single:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.photo-duo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.photo-duo-item {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-duo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Nouveaux styles pour le contenu */
.service-hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.service-hero h1 {
    font-size: 2.8rem;
    color: #1e40af;
    margin-bottom: 20px;
}

.service-content h2 {
    color: #1e40af;
    margin: 40px 0 20px;
    font-size: 2rem;
}

.service-content h3 {
    color: #374151;
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
}

.service-content ul li {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.service-content ul li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Animation pour les éléments qui apparaissent */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive design amélioré */
@media (max-width: 1200px) {
    .photo-duo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .photo-duo-item {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .years-experience {
        font-size: 3rem;
    }
    
    .photo-single {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .cv-competence-grid {
        grid-template-columns: 1fr;
    }
    
    .client-logos {
        gap: 20px;
        padding: 30px;
    }
    
    .client-logo-item {
        min-width: 140px;
        padding: 20px;
    }
    
    .certification-section {
        padding: 30px;
    }
    
    .photo-duo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .photo-duo-item {
        height: 300px;
    }
    
    .photo-single {
        height: 350px;
    }
    
    .photo-real-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-hero h1 {
        font-size: 2.2rem;
    }
    
    .service-content h2 {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .years-experience {
        font-size: 2.5rem;
    }
    
    .photo-single {
        height: 250px;
    }
    
    .photo-duo-item {
        height: 200px;
    }
    
    .client-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .client-logo-item {
        width: 100%;
        max-width: 250px;
    }
    
    .service-hero h1 {
        font-size: 1.8rem;
    }
    
    .project-timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        margin-bottom: 30px;
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -15px;
    }
}

@media (max-width: 480px) {
    .photo-single {
        height: 200px;
    }
    
    .photo-duo-item {
        height: 180px;
    }
    
    .certification-badge {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
    
    .expertise-badge {
        display: block;
        margin: 8px 0;
        text-align: center;
    }
}